package com.wsl.dao;

import com.wsl.entity.blog.Type;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author: wsl
 * @Date: 2022/2/15 16:35
 */
@Repository
public interface TypeDao extends JpaRepository<Type,Long> {

    int deleteByName(String name);


    Type findByName(String name);


}
